package com.fast.framework.web.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fast.framework.core.domain.Menu;
import com.fast.framework.core.mapper.MenuMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuService extends ServiceImpl<MenuMapper, Menu> {
    @Resource
    private MenuMapper menuMapper;

    /**
     * 根据角色获取菜单列表
     *
     * @return 菜单列表
     */
    public List<Menu> getMenusWithRole() {
        return menuMapper.getMenusWithRole();
    }
}
